import request from '@/utils/request'
const prePath = '/beginning'

//初期帐查询列表
export function getBeginningDepotStockPage(data) {
  return request({
    url: prePath + '/beginningDepotStock/customizeList/page',
    method: 'post',
    data,
  })
}
//初期帐查询列表
export function getBeginningDepotStockAll(data) {
  return request({
    url: prePath + '/beginningDepotStock/customizeList/all',
    method: 'post',
    data,
  })
}
//初期帐查询列表分组
export function getBeginningDepotStockGroups(data) {
  return request({
    url: prePath + '/beginningDepotStock/customizeGroups',
    method: 'post',
    data,
  })
}
//初期帐查询列表导出
export function beginningDepotStockExcel(data) {
  return request({
    url: prePath + '/beginningDepotStock/excel',
    responseType: 'blob',
    method: 'post',
    data,
  })
}
//初期帐查询列表打印
export function beginningDepotStockPrint(data) {
  return request({
    url: prePath + '/beginningDepotStock/print',
    method: 'post',
    data,
  })
}
//初期帐查询列表打印二维码
export function beginningDepotStockPrintQrCode(data) {
  return request({
    url: prePath + '/beginningDepotStock/printQrCode',
    method: 'post',
    data,
  })
}
/**建账出库**/
export function getAccountExportOrderPage(data) {
  return request({
    url: prePath + '/accountExportOrder/customizeList/page',
    method: 'post',
    data,
  })
}

export function batchValidateAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder/batchValidate',
    method: 'post',
    data,
  })
}

export function getAccountExportOrderById(id) {
  return request({
    url: prePath + '/accountExportOrder/' + id,
    method: 'get',
  })
}

export function removeAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder',
    method: 'delete',
    data,
  })
}

export function createAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder',
    method: 'post',
    data,
  })
}
export function createAccountExportOrderAndSave(data) {
  return request({
    url: prePath + '/accountExportOrder/saveAndSubmit',
    method: 'post',
    data,
  })
}

export function updateAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder',
    method: 'put',
    data,
  })
}

export function submitAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder/submit',
    method: 'post',
    data,
  })
}

export function exportExcelAccountExportOrder(data) {
  return request({
    url: prePath + `/accountExportOrder/excel/`,
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder/execute',
    method: 'post',
    data,
  })
}

export function revokeAccountExportOrder(data) {
  return request({
    url: prePath + '/accountExportOrder/revoke',
    method: 'post',
    data,
  })
}

export function accountExportOrderDetailCustomizeListPage(data) {
  //其他出库明细
  return request({
    url: prePath + '/accountExportOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}

export function accountExportOrderDetailCustomizeListAll(data) {
  //其他出库明细
  return request({
    url: prePath + '/accountExportOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function accountExportOrderDetailCustomizeGroups(data) {
  //其他出库获取分组
  return request({
    url: prePath + '/accountExportOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//导出移库单
export function exportExcelAccountExportOrderDetail(data) {
  return request({
    url: prePath + `/accountExportOrderDetail/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//其他出库详情页打印数据
export function getAccountExportOrderPrint(data) {
  return request({
    url: prePath + '/accountExportOrder/print',
    method: 'post',
    data,
  })
}
export function beginningDepotStockCustomizeScan(data) {
  //自定义扫码
  return request({
    url: prePath + '/beginningDepotStock/customizeScan',
    method: 'post',
    data,
  })
}

/**建账入库**/
export function accountStoreOrderPrintQrCode(data) {
  //打印二维码
  return request({
    url: prePath + '/accountStoreOrder/printQrCode',
    method: 'post',
    data,
  })
}
export function getAccountStoreOrderCustomizeList(data) {
  // 获取订单列表
  return request({
    url: prePath + '/accountStoreOrder/customizeList/page',
    method: 'post',
    data,
  })
}
export function removeAccountStoreOrder(data) {
  //删除
  return request({
    url: prePath + '/accountStoreOrder',
    method: 'delete',
    data,
  })
}
export function submitAccountStoreOrder(data) {
  //提交
  return request({
    url: prePath + '/accountStoreOrder/submit',
    method: 'post',
    data,
  })
}
export function executeAccountStoreOrder(data) {
  // 入库
  return request({
    url: prePath + '/accountStoreOrder/execute',
    method: 'post',
    data,
  })
}
export function revokeAccountStoreOrder(data) {
  //撤回
  return request({
    url: prePath + '/accountStoreOrder/revoke',
    method: 'post',
    data,
  })
}
export function cancelPutAccountStoreOrder(data) {
  //取消上架
  return request({
    url: prePath + '/accountStoreOrder/cancelPut',
    method: 'post',
    data,
  })
}
export function getAccountStoreOrderDetailDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/accountStoreOrderDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function getAccountStoreOrderDetailDetailCustomizeAll(data) {
  return request({
    url: prePath + '/accountStoreOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function getAccountStoreOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/accountStoreOrderDetail/customizeGroups',
    method: 'post',
    data,
  })
}
export function exportExcelAccountStoreOrderDetail(data) {
  return request({
    url: prePath + `/accountStoreOrderDetail/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function accountStoreOrderDetailDetailsPrintQrCodeVO(data) {
  return request({
    url: prePath + '/accountStoreOrderDetail/printQrCodeVO',
    method: 'post',
    data,
  })
}
export function getAccountStoreOrderById(id) {
  return request({
    url: prePath + '/accountStoreOrder/' + id,
    method: 'get',
  })
}
export function exportExcelAccountStoreOrder(data) {
  return request({
    url: prePath + `/accountStoreOrder/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
export function getAccountStoreOrderPrint(data) {
  return request({
    url: prePath + '/accountStoreOrder/print',
    method: 'post',
    data,
  })
}
export function batchValidateAccountStoreOrder(data) {
  return request({
    url: prePath + '/accountStoreOrder/batchValidate',
    method: 'post',
    data,
  })
}
export function createAccountStoreOrder(data) {
  return request({
    url: prePath + '/accountStoreOrder',
    method: 'post',
    data,
  })
}
export function createAccountStoreOrderAndSave(data) {
  return request({
    url: prePath + '/accountStoreOrder/saveAndSubmit',
    method: 'post',
    data,
  })
}
export function updateAccountStoreOrder(data) {
  return request({
    url: prePath + '/accountStoreOrder',
    method: 'put',
    data,
  })
}
//取消拣货
export function accountExportOrdersCancelDownShelf(data) {
  return request({
    url: prePath + '/accountExportOrder/cancelDownShelf',
    method: 'post',
    data,
  })
}
//取消
export function accountExportOrdersCancel(data) {
  return request({
    url: prePath + '/accountExportOrder/cancel',
    method: 'post',
    data,
  })
}
